<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>

<!DOCTYPE html>
<html>
<head>
    <%@ include file="../commons/meta.jsp"%>
    <title>${commonTitle}-停简单管理平台</title>
    <link href="${ctx}/hplus/css/plugins/page.css" rel="stylesheet">
</head>
<body class="fixed-sidebar full-height-layout">
<div id="wrapper">
    <%@ include file="../commons/left.jsp"%>
    <div id="page-wrapper" class="gray-bg dashbard-1">
        <%@ include file="../commons/top.jsp"%>
        <!-- 业务代码 -->
        <div class="row wrapper border-bottom white-bg page-heading">
            <div class="col-lg-10">
                <h2>接口授权管理</h2>
                <ol class="breadcrumb">
                    <li><a href="${ctx}/send/developer/list">开发者管理</a></li>
                    <li><strong>接口授权</strong></li>
                </ol>
            </div>
        </div>
        <div class="gray-bg wrapper wrapper-content animated fadeInRight dashbard-1">
            <div class="row">
                <div class="col-lg-12">
                    <div class="ibox float-e-margins">

                        <div class="ibox-title">
                            <h5>授权列表</h5>
                            <div class="ibox-tools">
                                <a href="${ctx}/send/developer/list" class="btn btn-primary btn-xs">返回列表</a>
                            </div>
                            <div class="ibox-tools">
                                <a href="#" class="btn btn-primary btn-xs" id="addInterface">添加授权</a>
                            </div>

                        </div>

                    </div>
                </div>
                <div class="col-lg-12" style="overflow: auto;">
                    <table id="dataList" class="table table-striped table-bordered table-hover">
                        <thead>
                        <tr>
                            <th>编&nbsp;号</th>
                            <th>接口名称</th>
                            <th>接口描述</th>
                            <th>每天限制访问次数</th>
                            <th>每小时限制访问次数</th>
                            <th>每分钟限制访问次数</th>
                            <th>每秒限制访问次数</th>
                            <th>操作</th>
                        </tr>
                        </thead>
                    </table>
                    <input type="hidden" name="partnerHidden" id="partnerHidden" value="" >

                </div>
            </div>
        </div>

        <!-- Button trigger modal -->


        <!-- Modal -->
        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="myModalLabel">修改接口授权</h4>
                    </div>
                    <div class="modal-body">

                        <div class="ibox-content">

                            <form class="form-horizontal m-t"  method="post" action="#" id="updateFrom">

                                <div class="ibox-content">
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">接口名称：</label>
                                        <div class="col-sm-7">
                                            <input name="method" class="form-control" value="" id="method"
                                                   readonly="true"/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">接口描述：</label>
                                        <div class="col-sm-7">
                                            <input name="methodName" class="form-control" value="" id="methodName"
                                                   readonly="true"/>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">每天限制访问次数：</label>
                                        <div class="col-sm-7">
                                            <input name="limitD" class="form-control" value="" id="limitD"/>
                                        </div>
                                        <span class="spanRed">*</span>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">每小时限制访问次数：</label>
                                        <div class="col-sm-7">
                                            <input name="limitH" class="form-control" value="" id="limitH"/>
                                        </div>
                                        <span class="spanRed">*</span>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">每分钟限制访问次数：</label>
                                        <div class="col-sm-7">
                                            <input name="limitM" class="form-control" value="" id="limitM"/>
                                        </div>
                                        <span class="spanRed">*</span>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-4 control-label">每秒限制访问次数：</label>
                                        <div class="col-sm-7">
                                            <input name="limitS" class="form-control" value="" id="limitS"/>
                                        </div>
                                        <span class="spanRed">*</span>
                                    </div>
                                </div>
                                <div class="modal-footer">
                                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                    <button type="submit" class="btn btn-primary" >保存</button>
                                </div>
                            </form>
                        </div>



                    </div>

                </div>
            </div>
        </div>
        <!-- Modal 结束-->

        <%@ include file="../commons/footer.jsp"%>
    </div>
</div>
<script src="${ctx}/hplus/js/gateway/developer/interfaceList.js"></script>

</body>
</html>